<%@ taglib prefix="spring-tags" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="spring-form" uri="http://www.springframework.org/tags/form"%>
<%@ page
    import="org.jiscinvolve.astrodabis.mallow.model.api.Tag"
    import="org.jiscinvolve.astrodabis.mallow.model.api.Query"
    import="org.jiscinvolve.astrodabis.mallow.model.api.QueryTag"
    import="org.jiscinvolve.astrodabis.mallow.model.api.Result"
    import="org.jiscinvolve.astrodabis.mallow.model.api.Account"
    import="org.jiscinvolve.astrodabis.mallow.model.tap.TapTable"
    import="org.jiscinvolve.astrodabis.mallow.model.tap.TapObject"
    import="org.jiscinvolve.astrodabis.mallow.model.tap.TapService"
    import="org.jiscinvolve.astrodabis.mallow.control.ViewData"
    session="true"
%>
<%@ include file="/jsp/init.jsp" %>
<%@ include file="/jsp/objects/init.jsp" %>
<html>
    <head>
	    <title>AstroDAbis object [<%= object.ident() %>]</title>
        <link href='/astrodabis/css/page.css' rel='stylesheet' type='text/css'/>
    </head>
    <body>
        <%@ include file="/jsp/header.jsp" %>
        <div class='body'>
            <div class='left'>
                <%@ include file="/jsp/menu.jsp" %>
            </div>
            <div class='right'>
                <a href='<%= data.path(object) %>'>
                    <img src='<%= data.qrcode(data.path(object)) %>'/>
                </a>
            </div>
            <div class='content'>
        	    <h2>Object [<%= object.service().name() %>][<%= object.table().name() %>][<%= object.key() %>] </h2>
                <fieldset>
                    <legend>Object details</legend>
                    <div>
                        <ul>
                            <li>
                                Service : <a href='<%= data.path(object.service()) %>'><%= object.service().name() %></a>
                            </li>
                            <li>
                                Table : <a href='<%= data.path(object.table()) %>'><%= object.table().name() %></a>
                            </li>
                            <li>
                                Object : <%= object.key() %>
                            </li>
                        </ul>
                    </div>
                </fieldset>

                <fieldset>
                    <legend>Results</legend>
                    list of query results that contain this object,
                    plus tags assocoatd with each of them 
                </fieldset>

            </div>
        </div>
        <%@ include file="/jsp/footer.jsp" %>
    </body>
</html>

